<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cpp-ipfs-http-client: ipfs::http::TransportCurl Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cpp-ipfs-http-client
   </div>
   <div id="projectbrief">IPFS C++ client library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceipfs.html">ipfs</a></li><li class="navelem"><b>http</b></li><li class="navelem"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classipfs_1_1http_1_1TransportCurl-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">ipfs::http::TransportCurl Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Convenience class for talking basic HTTP, implemented using CURL.  
 <a href="classipfs_1_1http_1_1TransportCurl.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="transport-curl_8h_source.html">ipfs/http/transport-curl.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ipfs::http::TransportCurl:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classipfs_1_1http_1_1TransportCurl.png" usemap="#ipfs::http::TransportCurl_map" alt=""/>
  <map id="ipfs::http::TransportCurl_map" name="ipfs::http::TransportCurl_map">
<area href="classipfs_1_1http_1_1Transport.html" title="Convenience interface for talking basic HTTP." alt="ipfs::http::Transport" shape="rect" coords="0,0,142,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a23c103c9d7cbf40fa867b1db602a4361"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a23c103c9d7cbf40fa867b1db602a4361">TransportCurl</a> (bool curlVerbose)</td></tr>
<tr class="memdesc:a23c103c9d7cbf40fa867b1db602a4361"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <br /></td></tr>
<tr class="separator:a23c103c9d7cbf40fa867b1db602a4361"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4825184e3f6cbcb1bc488e8eb8af5b27"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a4825184e3f6cbcb1bc488e8eb8af5b27">TransportCurl</a> (const <a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;other)</td></tr>
<tr class="memdesc:a4825184e3f6cbcb1bc488e8eb8af5b27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy Constructor.  <br /></td></tr>
<tr class="separator:a4825184e3f6cbcb1bc488e8eb8af5b27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af24d38bafd745f2c1b7f1ed4b1040963"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#af24d38bafd745f2c1b7f1ed4b1040963">TransportCurl</a> (<a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&amp;other) noexcept</td></tr>
<tr class="memdesc:af24d38bafd745f2c1b7f1ed4b1040963"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move-constructor.  <br /></td></tr>
<tr class="separator:af24d38bafd745f2c1b7f1ed4b1040963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae4f2177edac94e2eee400a3e21bdb20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#aae4f2177edac94e2eee400a3e21bdb20">operator=</a> (const <a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;)</td></tr>
<tr class="memdesc:aae4f2177edac94e2eee400a3e21bdb20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy assignment operator.  <br /></td></tr>
<tr class="separator:aae4f2177edac94e2eee400a3e21bdb20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a687fd5a5416f6a2d015d1824efa77dc7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a687fd5a5416f6a2d015d1824efa77dc7">operator=</a> (<a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&amp;) noexcept</td></tr>
<tr class="memdesc:a687fd5a5416f6a2d015d1824efa77dc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move assignment operator.  <br /></td></tr>
<tr class="separator:a687fd5a5416f6a2d015d1824efa77dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc09c69db3a0023675472fc3985a116d"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="classipfs_1_1http_1_1Transport.html">Transport</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#afc09c69db3a0023675472fc3985a116d">Clone</a> () const override</td></tr>
<tr class="memdesc:afc09c69db3a0023675472fc3985a116d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a deep copy of this object.  <br /></td></tr>
<tr class="separator:afc09c69db3a0023675472fc3985a116d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3315f1f9af3a7659ed1166dbc81913f4"><td class="memItemLeft" align="right" valign="top"><a id="a3315f1f9af3a7659ed1166dbc81913f4" name="a3315f1f9af3a7659ed1166dbc81913f4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>~TransportCurl</b> ()</td></tr>
<tr class="memdesc:a3315f1f9af3a7659ed1166dbc81913f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a3315f1f9af3a7659ed1166dbc81913f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81bbb85b1a3feda8c5aa44b9c1769a6d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a81bbb85b1a3feda8c5aa44b9c1769a6d">Fetch</a> (const std::string &amp;url, const std::vector&lt; <a class="el" href="structipfs_1_1http_1_1FileUpload.html">FileUpload</a> &gt; &amp;files, std::iostream *response) override</td></tr>
<tr class="memdesc:a81bbb85b1a3feda8c5aa44b9c1769a6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetch the contents of a given URL.  <br /></td></tr>
<tr class="separator:a81bbb85b1a3feda8c5aa44b9c1769a6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a527370641262a53f2c54bf2b75451454"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a527370641262a53f2c54bf2b75451454">StopFetch</a> () override</td></tr>
<tr class="memdesc:a527370641262a53f2c54bf2b75451454"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop the fetch method abruptly, useful whenever the Fetch method is used within a thead, but you want to stop the thread (without using pthread_cancel).  <br /></td></tr>
<tr class="separator:a527370641262a53f2c54bf2b75451454"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40a132f83bb069f463cab41249f4da74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a40a132f83bb069f463cab41249f4da74">ResetFetch</a> () override</td></tr>
<tr class="memdesc:a40a132f83bb069f463cab41249f4da74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the internal state, after <a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a527370641262a53f2c54bf2b75451454" title="Stop the fetch method abruptly, useful whenever the Fetch method is used within a thead,...">StopFetch()</a> is called.  <br /></td></tr>
<tr class="separator:a40a132f83bb069f463cab41249f4da74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac53142bf9e4604695bd7414eda516bc6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html#ac53142bf9e4604695bd7414eda516bc6">UrlEncode</a> (const std::string &amp;raw, std::string *encoded) override</td></tr>
<tr class="memdesc:ac53142bf9e4604695bd7414eda516bc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">URL encode a string.  <br /></td></tr>
<tr class="separator:ac53142bf9e4604695bd7414eda516bc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d2cdcea0358186ed520efce18dcf4ef"><td class="memItemLeft" align="right" valign="top"><a id="a7d2cdcea0358186ed520efce18dcf4ef" name="a7d2cdcea0358186ed520efce18dcf4ef"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Test</b> ()</td></tr>
<tr class="memdesc:a7d2cdcea0358186ed520efce18dcf4ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test the internals that are hard to execute from the public API, like error handling of some exceptional cases. <br /></td></tr>
<tr class="separator:a7d2cdcea0358186ed520efce18dcf4ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classipfs_1_1http_1_1Transport"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classipfs_1_1http_1_1Transport')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classipfs_1_1http_1_1Transport.html">ipfs::http::Transport</a></td></tr>
<tr class="memitem:a4e3fd7f011e46562ac7d2f9005061601 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memItemLeft" align="right" valign="top">virtual std::unique_ptr&lt; <a class="el" href="classipfs_1_1http_1_1Transport.html">Transport</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1Transport.html#a4e3fd7f011e46562ac7d2f9005061601">Clone</a> () const =0</td></tr>
<tr class="memdesc:a4e3fd7f011e46562ac7d2f9005061601 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a deep copy of this object.  <br /></td></tr>
<tr class="separator:a4e3fd7f011e46562ac7d2f9005061601 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a415e5830dfb8c2e26996e6619c15c8a6 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memItemLeft" align="right" valign="top">
virtual&#160;</td><td class="memItemRight" valign="bottom"><b>~Transport</b> ()</td></tr>
<tr class="memdesc:a415e5830dfb8c2e26996e6619c15c8a6 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a415e5830dfb8c2e26996e6619c15c8a6 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b9139c6d768df23da1893ff54a8d75a inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1Transport.html#a1b9139c6d768df23da1893ff54a8d75a">Fetch</a> (const std::string &amp;url, const std::vector&lt; <a class="el" href="structipfs_1_1http_1_1FileUpload.html">FileUpload</a> &gt; &amp;files, std::iostream *response)=0</td></tr>
<tr class="memdesc:a1b9139c6d768df23da1893ff54a8d75a inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetch the contents of a given URL.  <br /></td></tr>
<tr class="separator:a1b9139c6d768df23da1893ff54a8d75a inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4da291ea9be5e9bcf4faccd7cbfe87fc inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1Transport.html#a4da291ea9be5e9bcf4faccd7cbfe87fc">StopFetch</a> ()=0</td></tr>
<tr class="memdesc:a4da291ea9be5e9bcf4faccd7cbfe87fc inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop the Fetch method abruptly.  <br /></td></tr>
<tr class="separator:a4da291ea9be5e9bcf4faccd7cbfe87fc inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31f96b6c63538c26c81ab5f8d806d1a5 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1Transport.html#a31f96b6c63538c26c81ab5f8d806d1a5">ResetFetch</a> ()=0</td></tr>
<tr class="memdesc:a31f96b6c63538c26c81ab5f8d806d1a5 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the internal state, after <a class="el" href="classipfs_1_1http_1_1Transport.html#a4da291ea9be5e9bcf4faccd7cbfe87fc" title="Stop the Fetch method abruptly.">StopFetch()</a> is called.  <br /></td></tr>
<tr class="separator:a31f96b6c63538c26c81ab5f8d806d1a5 inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab06599853f7f2b11ad323a3d67df4cad inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classipfs_1_1http_1_1Transport.html#ab06599853f7f2b11ad323a3d67df4cad">UrlEncode</a> (const std::string &amp;raw, std::string *encoded)=0</td></tr>
<tr class="memdesc:ab06599853f7f2b11ad323a3d67df4cad inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="mdescLeft">&#160;</td><td class="mdescRight">URL encode a string.  <br /></td></tr>
<tr class="separator:ab06599853f7f2b11ad323a3d67df4cad inherit pub_methods_classipfs_1_1http_1_1Transport"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Convenience class for talking basic HTTP, implemented using CURL. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a23c103c9d7cbf40fa867b1db602a4361" name="a23c103c9d7cbf40fa867b1db602a4361"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23c103c9d7cbf40fa867b1db602a4361">&#9670;&#160;</a></span>TransportCurl() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ipfs::http::TransportCurl::TransportCurl </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>curlVerbose</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">curlVerbose</td><td>Enable cURL verbose mode, useful for debugging. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4825184e3f6cbcb1bc488e8eb8af5b27" name="a4825184e3f6cbcb1bc488e8eb8af5b27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4825184e3f6cbcb1bc488e8eb8af5b27">&#9670;&#160;</a></span>TransportCurl() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ipfs::http::TransportCurl::TransportCurl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">other</td><td>Other <a class="el" href="classipfs_1_1http_1_1TransportCurl.html" title="Convenience class for talking basic HTTP, implemented using CURL.">TransportCurl</a> object to be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af24d38bafd745f2c1b7f1ed4b1040963" name="af24d38bafd745f2c1b7f1ed4b1040963"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af24d38bafd745f2c1b7f1ed4b1040963">&#9670;&#160;</a></span>TransportCurl() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ipfs::http::TransportCurl::TransportCurl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Move-constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">other</td><td><a class="el" href="classipfs_1_1http_1_1TransportCurl.html" title="Convenience class for talking basic HTTP, implemented using CURL.">TransportCurl</a> object to be moved. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="afc09c69db3a0023675472fc3985a116d" name="afc09c69db3a0023675472fc3985a116d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc09c69db3a0023675472fc3985a116d">&#9670;&#160;</a></span>Clone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::unique_ptr&lt; <a class="el" href="classipfs_1_1http_1_1Transport.html">Transport</a> &gt; ipfs::http::TransportCurl::Clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return a deep copy of this object. </p>
<dl class="section return"><dt>Returns</dt><dd>Unique pointer of the <a class="el" href="classipfs_1_1http_1_1Transport.html" title="Convenience interface for talking basic HTTP.">Transport</a> object. </dd></dl>

<p>Implements <a class="el" href="classipfs_1_1http_1_1Transport.html#a4e3fd7f011e46562ac7d2f9005061601">ipfs::http::Transport</a>.</p>

</div>
</div>
<a id="a81bbb85b1a3feda8c5aa44b9c1769a6d" name="a81bbb85b1a3feda8c5aa44b9c1769a6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81bbb85b1a3feda8c5aa44b9c1769a6d">&#9670;&#160;</a></span>Fetch()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ipfs::http::TransportCurl::Fetch </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="structipfs_1_1http_1_1FileUpload.html">FileUpload</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>files</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::iostream *&#160;</td>
          <td class="paramname"><em>response</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Fetch the contents of a given URL. </p>
<p>If any files are provided in <code>files</code>, they are submitted using "Content-Type: multipart/form-data".</p>
<p>Fetch method is thread-safe. Therefor, can be used within a thread.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::exception</td><td>if any error occurs including erroneous HTTP status code </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">url</td><td>URL to get.  </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">files</td><td>List of files to upload.  </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">response</td><td>Output to save the response body to. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classipfs_1_1http_1_1Transport.html#a1b9139c6d768df23da1893ff54a8d75a">ipfs::http::Transport</a>.</p>

</div>
</div>
<a id="aae4f2177edac94e2eee400a3e21bdb20" name="aae4f2177edac94e2eee400a3e21bdb20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae4f2177edac94e2eee400a3e21bdb20">&#9670;&#160;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp; ipfs::http::TransportCurl::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy assignment operator. </p>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">other</td><td>Other <a class="el" href="classipfs_1_1http_1_1TransportCurl.html" title="Convenience class for talking basic HTTP, implemented using CURL.">TransportCurl</a> object to be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a687fd5a5416f6a2d015d1824efa77dc7" name="a687fd5a5416f6a2d015d1824efa77dc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a687fd5a5416f6a2d015d1824efa77dc7">&#9670;&#160;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp; ipfs::http::TransportCurl::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classipfs_1_1http_1_1TransportCurl.html">TransportCurl</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Move assignment operator. </p>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">other</td><td>Other <a class="el" href="classipfs_1_1http_1_1TransportCurl.html" title="Convenience class for talking basic HTTP, implemented using CURL.">TransportCurl</a> object to be moved. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a40a132f83bb069f463cab41249f4da74" name="a40a132f83bb069f463cab41249f4da74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40a132f83bb069f463cab41249f4da74">&#9670;&#160;</a></span>ResetFetch()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ipfs::http::TransportCurl::ResetFetch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reset the internal state, after <a class="el" href="classipfs_1_1http_1_1TransportCurl.html#a527370641262a53f2c54bf2b75451454" title="Stop the fetch method abruptly, useful whenever the Fetch method is used within a thead,...">StopFetch()</a> is called. </p>
<p>This method needs to be called once the thread is fully finished. Ideally after client.abort() and thread.join() methods.</p>
<p>Call this method out-side of the running thread, eg. the main thread. </p>

<p>Implements <a class="el" href="classipfs_1_1http_1_1Transport.html#a31f96b6c63538c26c81ab5f8d806d1a5">ipfs::http::Transport</a>.</p>

</div>
</div>
<a id="a527370641262a53f2c54bf2b75451454" name="a527370641262a53f2c54bf2b75451454"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a527370641262a53f2c54bf2b75451454">&#9670;&#160;</a></span>StopFetch()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ipfs::http::TransportCurl::StopFetch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stop the fetch method abruptly, useful whenever the Fetch method is used within a thead, but you want to stop the thread (without using pthread_cancel). </p>
<p>Call this method out-side of the running thread, eg. the main thread. </p>

<p>Implements <a class="el" href="classipfs_1_1http_1_1Transport.html#a4da291ea9be5e9bcf4faccd7cbfe87fc">ipfs::http::Transport</a>.</p>

</div>
</div>
<a id="ac53142bf9e4604695bd7414eda516bc6" name="ac53142bf9e4604695bd7414eda516bc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac53142bf9e4604695bd7414eda516bc6">&#9670;&#160;</a></span>UrlEncode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ipfs::http::TransportCurl::UrlEncode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string *&#160;</td>
          <td class="paramname"><em>encoded</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>URL encode a string. </p>
<p>URLEcode method is thread-safe. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">raw</td><td>Input string to encode.  </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">encoded</td><td>URL encoded result. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classipfs_1_1http_1_1Transport.html#ab06599853f7f2b11ad323a3d67df4cad">ipfs::http::Transport</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/media/melroy/Data/Projects/cpp-ipfs-http-client/include/ipfs/http/<a class="el" href="transport-curl_8h_source.html">transport-curl.h</a></li>
<li>/media/melroy/Data/Projects/cpp-ipfs-http-client/src/http/transport-curl.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>
